package com.petShop.mappers;

import java.util.List;
import com.petShop.models.Good;

public interface GoodMapper {
	//宠物狗
	int insertPet(Good good);
	List<Good> selectPets();
	List<Good> getPetsbyPage(int start);
	List<Good> selectColor(String color);
	List<Good> searchGoods(Good good);
	List<Good> searchBylowPrice(Good good);
	List<Good> searchByhighPrice(Good good);
	List<Good> searchGoodsByName(Good good);
	List<Good> searchByNameAndLowPrice(Good good);
	List<Good> searchByNameAndHighPrice(Good good);
	void updatePet(Good good);
	void updatePet2(Good good);
	//周边
	int insertPetGood(Good good);
	List<Good> selectPetGoods();
	List<Good> searchPetGoods(Good good);
	List<Good> searchPetGoodsBylowPrice(Good good);
	List<Good> searchPetGoodsByhighPrice(Good good);
	List<Good> searchPetGoodsByName(Good good);
	List<Good> searchPetGoodsByNameAndLowPrice(Good good);
	List<Good> searchPetGoodsByNameAndHighPrice(Good good);
	void updatePetGoods(Good good);
	void updatePetGoods2(Good good);
	//宠物狗和周边
	Good selectGood(int goodId);
	List<Good> selectkinds(int kindsId);
	void deleteGood(int goodId);
	void addSales(Good good);

}
